<?php

namespace Ue\ErpBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * StatisticsSale
 *
 * @ORM\Table(name="ue_statistics_sale", indexes={@ORM\Index(name="ue_statistics_sale_platform_id_idx", columns={"platform_id"})})
 * @ORM\Entity
 */
class StatisticsSale
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var integer
     *
     * @ORM\Column(name="order_num", type="bigint", nullable=true)
     */
    private $orderNum;

    /**
     * @var float
     *
     * @ORM\Column(name="order_amount", type="float", precision=12, scale=2, nullable=true)
     */
    private $orderAmount;

    /**
     * @var integer
     *
     * @ORM\Column(name="effective_num", type="bigint", nullable=true)
     */
    private $effectiveNum;

    /**
     * @var float
     *
     * @ORM\Column(name="effective_amount", type="float", precision=12, scale=2, nullable=true)
     */
    private $effectiveAmount;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="ctime", type="date", nullable=false)
     */
    private $ctime;

    /**
     * @var \Platform
     *
     * @ORM\ManyToOne(targetEntity="Platform")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="platform_id", referencedColumnName="id")
     * })
     */
    private $platform;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set orderNum
     *
     * @param integer $orderNum
     * @return StatisticsSale
     */
    public function setOrderNum($orderNum)
    {
        $this->orderNum = $orderNum;

        return $this;
    }

    /**
     * Get orderNum
     *
     * @return integer 
     */
    public function getOrderNum()
    {
        return $this->orderNum;
    }

    /**
     * Set orderAmount
     *
     * @param float $orderAmount
     * @return StatisticsSale
     */
    public function setOrderAmount($orderAmount)
    {
        $this->orderAmount = $orderAmount;

        return $this;
    }

    /**
     * Get orderAmount
     *
     * @return float 
     */
    public function getOrderAmount()
    {
        return $this->orderAmount;
    }

    /**
     * Set effectiveNum
     *
     * @param integer $effectiveNum
     * @return StatisticsSale
     */
    public function setEffectiveNum($effectiveNum)
    {
        $this->effectiveNum = $effectiveNum;

        return $this;
    }

    /**
     * Get effectiveNum
     *
     * @return integer 
     */
    public function getEffectiveNum()
    {
        return $this->effectiveNum;
    }

    /**
     * Set effectiveAmount
     *
     * @param float $effectiveAmount
     * @return StatisticsSale
     */
    public function setEffectiveAmount($effectiveAmount)
    {
        $this->effectiveAmount = $effectiveAmount;

        return $this;
    }

    /**
     * Get effectiveAmount
     *
     * @return float 
     */
    public function getEffectiveAmount()
    {
        return $this->effectiveAmount;
    }

    /**
     * Set ctime
     *
     * @param \DateTime $ctime
     * @return StatisticsSale
     */
    public function setCtime($ctime)
    {
        $this->ctime = $ctime;

        return $this;
    }

    /**
     * Get ctime
     *
     * @return \DateTime 
     */
    public function getCtime()
    {
        return $this->ctime;
    }

    /**
     * Set platform
     *
     * @param \Ue\ErpBundle\Entity\Platform $platform
     * @return StatisticsSale
     */
    public function setPlatform(\Ue\ErpBundle\Entity\Platform $platform = null)
    {
        $this->platform = $platform;

        return $this;
    }

    /**
     * Get platform
     *
     * @return \Ue\ErpBundle\Entity\Platform 
     */
    public function getPlatform()
    {
        return $this->platform;
    }
}
